﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using System.ComponentModel.DataAnnotations;

namespace ERPStore.Offers.Repositories.Mapping
{
	public class SelectedDetailExtensionMap : EntityTypeConfiguration<Datas.SelectedDetailExtension>
	{
		public SelectedDetailExtensionMap()
		{
			this.HasKey(t => t.ERPStoreOffersEntitySelectedDetailExtensionId);
			this.Property(p => p.ERPStoreOffersEntitySelectedDetailExtensionId)
				.IsRequired()
				.HasDatabaseGeneratedOption(DatabaseGeneratedOption.None)
				.HasColumnName("ERPStoreOffersEntitySelectedDetailExtensionId");

			ToTable("ERPStoreOffersEntitySelectedDetailExtension");
		}
	}
}
